home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15096 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: cocoa.brown.edu!sun22!mjw
  2. From: mjw@pobox.com
  3. Newsgroups: comp.lang.tcl,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.lang.awk,comp.lang.c,comp.lang.perl.misc,comp.programming,comp.software-eng
  4. Subject: Appropriate Tools and Approach for Kill Application
  5. Date: Wed, 17 Apr 1996 00:39:21 -0400
  6. Organization: Brown University
  7. Message-ID: <Pine.SOL.3.91.960417003525.18392A-100000@sun22>
  8. NNTP-Posting-Host: sun22.engin.brown.edu
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. X-Sender: weissmj@sun22
  12.  
  13. I am interested in writing a fancy program to kill processes and could use
  14. some advice on appropriate tools, languages, and approaches. 
  15.  
  16. I would like the program to function as follows:
  17.  
  18. There will exist a command line switch to correspond to each process
  19. characterstic. A process characteristic will most likely be each of the
  20. fields displayed in a full process list (ps -ef on many systems.) Using
  21. these switches, a user will be able to specify one or more characteristics
  22. with the ability to use regular expressions.  Also, where appropriate, he
  23. or she may include processes to be killed by using equalities/
  24. inequalities. 
  25.  
  26.  
  27. i.e.
  28.  
  29. kill -n x*
  30.  
  31. would kill xterm, xrn, xmosaic, etc.
  32.  
  33.  
  34. kill -n x* -t >=5h2m
  35.  
  36. would kill all processes beginning with lowercase x and which have been
  37. running at least than five hours and two minutes. 
  38.  
  39. These examples are provided to give a basic idea--I haven't worked out the
  40. syntax yet. 
  41.  
  42. Lastly, I would like the user to be able to specify criteria for EXCLUDING
  43. processes based on values for these same characteristics. 
  44.  
  45.  
  46. Can you please help with the following questions:
  47.  
  48. 1) What tools or languages would be best to use?  C, Tcl, scripting langs,
  49. LEX & YACC, etc. 
  50.  
  51. 2) What are some good strategies and their pros and cons for implementing
  52. this functionality in different software forms i.e. script, program, 
  53. combination, etc.
  54.  
  55. 3) Are there any guidelines or tips for designing the syntax to jive with
  56. standard practice? 
  57.  
  58.  
  59. Thanks so much for your help.
  60.  
  61.  
  62. Michael Weiss
  63.  
  64.